﻿<%@ Page Title="Register" Language="C#" MasterPageFile="~/ProductMaster.master" AutoEventWireup="true"
    CodeBehind="Contact.aspx.cs" Inherits="ShopOnline.Contact" Theme="ShopOnline" %>

<%@ Register Assembly="MSCaptcha"Namespace="MSCaptcha" TagPrefix="cc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <link href="css/smart_wizard.css" rel="stylesheet" type="text/css" />
    <link href="css/BusinessCard.css" rel="stylesheet" type="text/css" />

    <div class='form-register' style='margin-bottom:20px'>
        <asp:Label ID="lblWelcome" runat="server">
            Register to purchase and also help us to server you better. Please provide the information below:
        </asp:Label> 
        <asp:Panel ID="pnlRegister" runat="server" Visible="false">
            Thank you for your supporting. You can edit your account information
            <a href="~/Register.aspx" runat="server">here</a>
        </asp:Panel>
        <br /><br />
        <span class="required">*</span>
        <asp:Label ID="Label1" runat='server' Text="required." class="labelTiny"></asp:Label>
    </div>
    <div class='form-register'>
        <table cellpadding="5" style='margin: auto' cellspacing="5">
            <tr>
                <td>
                    Name
                    <label class='required'>*</label>
                </td>
                <td>
                    <asp:TextBox ID='txtName' runat="server" class='tb7'></asp:TextBox>
                    <asp:RequiredFieldValidator ValidationGroup="Save" ID="require1" runat="server" ControlToValidate="txtName"
                        Display="Dynamic" CssClass="requiredField" ErrorMessage="" Text=""></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Email
                    <label class='required'>*</label>
                </td>
                <td>
                    <asp:TextBox ID='txtEmail' runat="server" class='tb7'></asp:TextBox>
                    <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator1" runat="server"
                    ControlToValidate="txtEmail" Display="Dynamic" CssClass="requiredField" ErrorMessage=""
                    Text=""></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator Display="Dynamic" CssClass="requiredField" ID="regexEmailValid" runat="server" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail" ErrorMessage="<br/>Invalid Email Format"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Address
                </td>
                <td>
                    <asp:TextBox ID='txtAddress' runat="server" class='tb7'></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Subject
                    <label class='required'>*</label>
                </td>
                <td>
                    <asp:TextBox ID='txtSubject' runat="server" class='tb7'></asp:TextBox>
                    <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator3" runat="server"
                    ControlToValidate="txtSubject" Display="Dynamic" CssClass="requiredField" ErrorMessage=""
                    Text=""></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top;">
                    Attachment
                </td>
                <td style="text-align: left; vertical-align: top;">
                    <asp:FileUpload style="height:28px" ID="file1" runat="server" class='tb7' />
                    <div style="height:4px" > &nbsp; </div>
                    <asp:FileUpload style="height:28px" ID="file2" runat="server" class='tb7' />
                </td>
            </tr>
            <tr>
                <td style="vertical-align: top;">
                    Content
                    <label class='required'>*</label>
                </td>
                <td> 
                    <div class='tb8'>
                        <asp:TextBox ID='txtContent' TextMode="MultiLine" Rows="3" runat="server" ></asp:TextBox>
                    </div>
                    <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator4" runat="server"
                    ControlToValidate="txtContent" Display="Dynamic" CssClass="requiredField" ErrorMessage=""
                    Text=""></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td style='vertical-align:top'>
                    Validation Code
                    <label class='required'>*</label>
                </td>
                <td style="text-align:left; vertical-align:top;">
                    <asp:TextBox ID="txtCode" runat="server" class='tb7'></asp:TextBox><br />
                    <asp:Label ID="Label11" runat='server' Text="Please type below characters." class="labelTiny"></asp:Label><br />
                    <cc:CaptchaControl  ID="ccJoin" runat="server" CaptchaBackgroundNoise="none" CaptchaLength="5" CaptchaHeight="60" CaptchaWidth="200" CaptchaLineNoise="Medium" CaptchaMinTimeout="5" CaptchaMaxTimeout="240" />
                    <asp:RequiredFieldValidator ValidationGroup="Save" ID="RequiredFieldValidator2" runat="server" class='requiredField' ErrorMessage="" Text='' Display="Dynamic" ControlToValidate="txtCode"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <button id="btnSubmit" type="button" runat="server" onserverclick="btnSubmit_OnClick" validationgroup="Save" class="button btn-cart">
                        <span><span>Submit</span></span></button>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
